<!DOCTYPE html>
<html>
<title>编程狮(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
<body>
<div class="w3-container">
<h2>圆角样式</h2>
<div class="w3-container w3-red w3-section w3-round-small">
<p>w3-round-small类为元素添加了一个2px的圆角.</p>
</div>
<div class="w3-container w3-red w3-round">
<p>The w3-round 类为元素添加了一个4px的圆角.</p>
</div>
<div class="w3-container w3-red w3-section w3-round-large">
<p>The w3-round-large 类为元素添加了一个8px的圆角.</p>
</div>
<div class="w3-container w3-red w3-section w3-round-xlarge">
<p>The w3-round-xlarge 类为元素添加了一个16px的圆角.</p>
</div>
<div class="w3-container w3-red w3-section w3-round-xxlarge">
<p>The w3-round-xxlarge 类为元素添加了一个32px的圆角.</p>
</div>
<p>运用在图片:</p>
<img class="w3-round" src="https://atts.w3cschool.cn/img_car.jpg" alt="Car" style="width:50%"><br><br>
<img class="w3-round-large" src="https://atts.w3cschool.cn/img_car.jpg" alt="Car" style="width:50%"><br><br>
<img class="w3-round-xlarge" src="https://atts.w3cschool.cn/img_car.jpg" alt="Car" style="width:50%"><br><br>
<img class="w3-round-xxlarge" src="https://atts.w3cschool.cn/img_car.jpg" alt="Car" style="width:50%"><br><br>
</div>